﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DispatchAdd.aspx.cs" Inherits="Services_Dispatch" %>
<html>
<head>
    <title>无标题页</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/rl.js"></script>
    <script type="text/javascript" src="../js/submit.js"></script>
    
 <script type="text/javascript">
  
        function check(id)
        {
       
           id.value="";
        }
  
        function account()
        {
            var sl=document.getElementById("txtNum").value;
            var dj=document.getElementById("txtCmoney").value;
            var Discount=document.getElementById("txtDiscount").value;
            if(sl==""||dj=="")
            {
                document.getElementById("txtWxjg").value="";
            }
            else if(isNaN(sl))
            {
                document.getElementById("Label2").innerText="数量格式有误，必须由数字组成";
            }
            else if(isNaN(dj))
            {
                document.getElementById("Label2").innerText="单价格式有误,必须由数字组成";
            }
            else if(isNaN(Discount))
            {
                document.getElementById("Label2").innerText="单价格式有误,必须由数字组成";
            }
            else if(sl!=""&&dj!=""&&!isNaN(sl)&&!isNaN(dj)&&!isNaN(Discount))
            {
                document.getElementById("txtTotalMoney").value=sl*dj*Discount;
                
            }
        }
     

  function dispAdd()
     {
        document.getElementById("flag").style.display="none";
        document.getElementById("t2").style.display="none";
        document.getElementById("t3").style.display="none";
        document.getElementById("t1").style.display="none";
     }
     function dispAdd1()
     {
        document.getElementById("t4").style.display="none";
     }
     function dispAdd2()
     {
        document.getElementById("flag").style.display="none";
        document.getElementById("t2").style.display="none";
        document.getElementById("t3").style.display="none";
     }
    

    </script>
   
</head>
<body style="margin-top: 10px;">
    <form id="form1" runat="server" onsubmit=" checknull(this)">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" height="22">
                    <img src="../images/module.gif" width="20" height="22"></td>
                <td style="width: 335px">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="990" align="right">
                
                    <font color="red"> [ <a href="javascript:location.href=document.referrer;" class="F_red"><font color="red">返回</font></a> ]</font>
                </td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="1" cellspacing="1" class="tabGg">
            <tr>
                <th  colspan="4" bgcolor="#FFFFFF">
                    <table width="100%" border="0">
                        <tr>
                            <td align="center" style="text-align: left;" colspan="2">
                                <asp:Label ID="lblMsg" runat="server" Text="单号：" ForeColor="Red"></asp:Label>
                                <asp:Label ID="lblDh" runat="server"></asp:Label>&nbsp;</td>
                        </tr>
                    </table>
                </th>
            </tr>
            <tr>
                <th width="15%" height="25" bgcolor="#ffffff" class="r_bg">
                    客户名称：</th>
                <td bgcolor="#ffffff" class="right_bg" style="width: 294px">
                    <asp:TextBox ID="lblGuestName" runat="server" CssClass="input1" check_null="客户名称不能为空！"></asp:TextBox></td>
                <th bgcolor="#ffffff" class="r_bg" width="14%">
                    联 系 人：</th>
                <td bgcolor="#ffffff" class="right_bg" width="37%">
                    <asp:TextBox ID="lblManName" runat="server" CssClass="input1" check_null="联系人不能为空！"></asp:TextBox></td>
            </tr>
            <tr>
                <th width="15%" height="26" bgcolor="#FFFFFF" class="r_bg">
                    联系电话：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:TextBox ID="lblPhone" runat="server" CssClass="input1" check_null="联系电话不能为空！"></asp:TextBox></td>
                <th width="14%" bgcolor="#FFFFFF" class="r_bg">
                    客户地址：</th>
                <td width="37%" bgcolor="#FFFFFF" class="right_bg">
                    <asp:TextBox ID="lblAddress" runat="server" CssClass="input1" check_null="客户地址不能为空！"></asp:TextBox></td>
            </tr>
            <tr>
                <th height="26" bgcolor="#FFFFFF" class="r_bg">
                    型号编号：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:TextBox ID="lblCode" runat="server" CssClass="input1"></asp:TextBox></td>
                <th bgcolor="#FFFFFF" class="r_bg">
                    商品名称：</th>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:TextBox ID="lblComoName" runat="server" CssClass="input1" check_null="商品名称不能为空！"></asp:TextBox></td>
            </tr>
            <tr>
                <th height="28" bgcolor="#FFFFFF" class="r_bg">
                    商品品牌：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:TextBox ID="lblBrand" runat="server" CssClass="input1" check_null="商品品牌不能为空！"></asp:TextBox></td>
                <th bgcolor="#FFFFFF" class="r_bg">
                    商品单位：</th>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:TextBox ID="lblUnits" runat="server" CssClass="input1"></asp:TextBox></td>
            </tr>
            <tr>
                <th height="24" bgcolor="#FFFFFF" class="r_bg">
                    规格型号：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style=" width: 294px;">
                    <asp:TextBox ID="lblSpeci" runat="server" CssClass="input1" check_null="规格型号不能为空！"></asp:TextBox></td>
                <th bgcolor="#FFFFFF" class="r_bg" >
                    购买日期：</th>
                <td bgcolor="#FFFFFF" class="right_bg">
                   <asp:TextBox ID="lblDate" runat="server" CssClass="input1"></asp:TextBox></td>
            </tr>
            <tr bgcolor="#3CB6E5" height="5px">
                
            </tr>
            <tr>
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px">
                    维修日期：</th>
                <td bgcolor="#ffffff" class="right_bg" style="width: 294px; height: 26px">
                    <asp:TextBox ID="txtdate" runat="server" CssClass="input1"></asp:TextBox></td>
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px" >
                    <asp:Label ID="lblmaimen" runat="server" Text="维 修 人："></asp:Label></th>
                <td bgcolor="#ffffff" class="right_bg" style="height: 26px" >
                    <asp:DropDownList ID="ddlDept"  check_select="维修人不能为空！"  runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlDept_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlName" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr id="t1">
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px">
                    设备状态：</th>
                <td bgcolor="#ffffff" class="right_bg" style="width: 294px; height: 26px;" >
                    <asp:Label ID="lblState" runat="server"></asp:Label></td>
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px" >
                    维修费用：</th>
                <td bgcolor="#ffffff" class="right_bg" style="height: 26px">
                    <asp:TextBox ID="txtfy" Text="0" runat="server" CssClass="input1" onBlur="if(this.value=='')this.value='0'"   onFocus="if(this.value=='0')this.value=''"></asp:TextBox>元</td>
            </tr>
            <tr id="flag">
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 26px">
                    客户评语：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 26px; width: 294px;">
                    <asp:DropDownList ID="ddlComt" runat="server">
                        <asp:ListItem Value="未平分">未平分</asp:ListItem>
                        <asp:ListItem Value="很好">很好</asp:ListItem>
                        <asp:ListItem Value="一般">一般</asp:ListItem>
                        <asp:ListItem Value="不好">不好</asp:ListItem>
                    </asp:DropDownList></td>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 26px">
                    员工提成：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 26px">
                    <asp:TextBox ID="txttc" runat="server" CssClass="input1" onblur="if(this.value=='')this.value='0'"
                        onfocus="if(this.value=='0')this.value=''" Text="0"></asp:TextBox>元</td>
            </tr>
            <tr id="t2">
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px">
                    客户意见：</th>
                <td bgcolor="#ffffff" class="right_bg" colspan="3" style="height: 26px">
                    <asp:TextBox ID="txtGuestYJ" runat="server"  Columns="40" onblur="if(this.value=='')this.value='空'"
                        onfocus="if(this.value=='空')this.value=''" Rows="5" Text="空" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
             <tr id="t3">
                <th height="22" bgcolor="#FFFFFF" class="r_bg">
                    维修部件：</th>
                <td bgcolor="#FFFFFF" class="right_bg" colspan="3">
                    <asp:TextBox ID="txtbj" runat="server" Width="300px" Text="空" onBlur="if(this.value=='')this.value='空'"   onFocus="if(this.value=='空')this.value=''" CssClass="input1"></asp:TextBox></td>
            </tr>
            <tr>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 16px">
                    操作人员：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 16px; width: 294px;">
                    <asp:Label ID="lblName" runat="server"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 16px">
                    </th>
                <td bgcolor="#FFFFFF">
                    </td>
            </tr>
            <tr>
                <th bgcolor="#FFFFFF" class="r_bg">
                </th>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg">
                    &nbsp;<asp:Button ID="btnadd" runat="server" OnClick="btnadd_Click" Text=" 确定 " CssClass="submit" /></td>
            </tr>
        </table>
    </form>
</body>
</html>
